#include <stdlib.h>
#include <stdio.h>
#include "listesChainees.h"
#include "graphes.h"
#include "menu.h"

int main(int argc, char **argv)
{
	TypGraphe *g = NULL;
	int graphDejaCree = 0;
	int continuer = 1;
	int choixMenu;
	
	while (continuer == 1) {
		choixMenu = afficheHomeMenu(graphDejaCree);
		chargerMenu(&g,graphDejaCree,choixMenu);
		if (g != NULL) {
			graphDejaCree = 1;
		}
		else {
			graphDejaCree = 0;
		}
		if (choixMenu == 0) {
			continuer = 0;
		}
	}
	printf("Fermeture de l'application dans quelques secondes...\n");
	
}
